#set -g prefix ^a
#unbind ^b
#bind a send-prefix

#Mouse works as expected
#setw -g mode-mouse on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window on

# vi mode
set -g mode-keys vi
#set history-limit 10000

# y and p as in vim
bind Escape copy-mode
unbind p
bind p paste-buffer
bind-key -T copy-mode-vi v send-keys -X begin-selection
bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel
# bind -t vi-copy 'Space' halfpage-down
# bind -t vi-copy 'Bspace' halfpage-up

# extra commands for interacting with the ICCCM clipboard
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard"
bind C-v run "tmux set-buffer \"$(xclip -o -sel clipboard)\"; tmux paste-buffer"


# select window
bind ^k selectp -U
bind ^j selectp -D
bind ^h selectp -L
bind ^l selectp -R

# resize window
#bind C-up		resizep -U
#bind C-down		resizep -D
#bind C-left		resizep -L
#bind C-right		resizep -R

# split window
unbind '"'
bind - splitw -v -c '#{pane_current_path}'
unbind '%'
bind \ splitw -h -c '#{pane_current_path}'

#set -g c0-change-trigger 100
#set -g c0-change-interval 250

# set 256 color
#set -g default-terminal "screen-256color"
### export TERM="sreen-256color" in your terminal to make vim-solarized 
### work correctly

#### COLOUR (Solarized 256)
#
## default statusbar colors
#set-option -g status-bg colour235 #base02
#set-option -g status-fg colour136 #yellow
#set-option -g status-attr default
#
## default window title colors
#set-window-option -g window-status-fg colour244 #base0
#set-window-option -g window-status-bg default
##set-window-option -g window-status-attr dim
#
## active window title colors
#set-window-option -g window-status-current-fg colour166 #orange
#set-window-option -g window-status-current-bg default
##set-window-option -g window-status-current-attr bright
#
## pane border
#set-option -g pane-border-fg colour235 #base02
#set-option -g pane-active-border-fg colour240 #base01
#
## message text
#set-option -g message-bg colour235 #base02
#set-option -g message-fg colour166 #orange
#
## pane number display
#set-option -g display-panes-active-colour colour33 #blue
#set-option -g display-panes-colour colour166 #orange
#
## clock
#set-window-option -g clock-mode-colour colour64 #green
#
## bell
## set-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red
#

